OBJS = game.o Player.o Parser.o Race.o
CC = g++
DEBUG = -g
CFLAGS = -Wall -c $(DEBUG)
LFLAGS = -Wall $(DEBUG)

game : $(OBJS)
	$(CC) $(LFLAGS) $(OBJS) -o game

game.o : game.h game.cpp Player.h Parser.h Race.h
	$(CC) $(CFLAGS) game.cpp

Player.o : Player.h Player.cpp 
	$(CC) $(CFLAGS) Player.cpp

Parser.o : Parser.h Parser.cpp
	$(CC) $(CFLAGS) Parser.cpp

Race.o : Race.h Race.cpp 
	$(CC) $(CFLAGS) Race.cpp

clean:
	rm -f *.o game
